<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WhittleList.Bll.Item>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TopContent" runat="server">
    <h2>Create Item</h2>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">
        $(document).ready(function() {
           

        })


        //
        //
    </script>

    <div class="colOne">
        <div class="colTwo colLeft">
      
          <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

       <% using (Html.BeginForm("Create", "Item", new { sectionId = this.ViewContext.Controller.ValueProvider["sectionId"].AttemptedValue }, FormMethod.Post, new { @class = "form" }))
          { %>
       
   <%-- <%= Html.TextBox("Text", null, new { @class = "field"}) %>  --%>
    
    
        <div class="bordered clearfix">
            <div class="inside">
                <dl>
                    <dt>
                        <label for="id_RefCode">Ref Code</label>
                    </dt>
                    <dd>
                        <span class="input-wrap">
                            <span class="savedInfo">-</span>
                        </span>
                    </dd>
                    <dt>
                        <label for="name">Name</label>
                    </dt>
                    <dd>
                        <%= Html.TextBox("name", Model != null ? Model.Name : "")%>
                        <%= Html.ValidationMessage("Name", "*") %>
                    </dd>
                    <dt>
                        <label for="notes">Description</label>
                    </dt>
                    <dd>
                        <span class="input-wrap">
                            
                            <%= Html.TextArea("Notes", null, new { @class = "create-proposal-text", @id = "Description" })%>
                            <%= Html.ValidationMessage("Notes", "*") %>
                        </span>
                    </dd>
                    <dt>
                        <label for="id_city">Date Created</label>
                    </dt>
                    <dd>
                        <span class="input-wrap">
                            <span class="savedInfo">-</span>
                        </span>
                     </dd>
                     <dt>
                        <label for="id_state">Created By</label></dt>
                     <dd>
                        <span class="input-wrap">
                            <span class="savedInfo"><%= User.Identity.Name %></span>
                        </span>
                     </dd>
                     <dt>
                        <label for="RequestedBy">Requested By</label></dt>
                     <dd>
                        <span class="input-wrap">
                            
                            <%= Html.TextBox("RequestedBy", Model != null ? Model.Name : User.Identity.Name, new { @class = "field", @id = "RequestedBy" })%>
                            <%= Html.ValidationMessage("RequestedBy", "*")%>
                        </span>
                     </dd>
                     <dt>
                        <label for="importance">Importance</label>
                    </dt>
                    <dd>
                        <span class="input-wrap">
                             <%=Html.DropDownList("importance", new[] {
                                new SelectListItem() {Text = "1", Value = "1", Selected = Model != null && Model.Importance == 1 },
                                new SelectListItem() {Text = "2", Value = "2", Selected = Model != null && Model.Importance == 2 },
                                new SelectListItem() {Text = "3", Value = "3", Selected = Model != null && Model.Importance == 3 },
                            }) %>
                            <%= Html.ValidationMessage("Importance", "*")%>
                      </span>
                    </dd>
                     <dt>
                        <label for="id_webaddress">Status</label>
                    </dt>
                    <dd>
                        <span class="input-wrap">
                             <%=Html.DropDownList("Status", new[] {
                                new SelectListItem() {Text = "1", Value = "1"},
                                new SelectListItem() {Text = "2", Value = "2"},
                                new SelectListItem() {Text = "3", Value = "3"},
                                new SelectListItem() {Text = "Done", Value = "Done"},
                                new SelectListItem() {Text = "Omit", Value = "Omit" } 
                            }) %>
                      </span>
                    </dd>
                    <dt>
                        <label for="id_phone">Allotted</label>
                    </dt>
                    <dd>
                        <span class="input-wrap">
                           
                            <%=Html.DropDownList("Allotted", new[] {
                                new SelectListItem() {Text = "Armfelt", Value = "Armfelt"},
                                new SelectListItem() {Text = "GAP", Value = "GAP"},
                                new SelectListItem() {Text = "Man", Value = "Man" } 
                            }) %>
                        </span>
                    </dd>
                    <dt>
                        <label for="id_fax">Due Date</label></dt>
                    <dd>
                        <span class="input-wrap">
                            <%= Html.TextBox("Due Date", null, new { @class = "datepicker field", @id = "DueDate" })%>
                        </span>
                    </dd>
                    <dt>
                        <label for="id_fax">Comment</label></dt>
                    <dd>
                        <span class="input-wrap">
                            <%= Html.TextBox("Add New Comment", null, new { @class = "field", @id = "AddNewComment" })%>
                            <%--<input id="Text11" type="text" class="field" name="fax" tabindex="10" />--%>
                        </span>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="buttons">
            <button class="button" tabindex="18" type="submit">Save</button>
        </div>
        
    <%--</form>--%>
    <% } %>
    
    </div>

        <div class="colTwo colRight">
            <p>Enter data for the item...</p>
        </div>
    </div>            

</asp:Content>


